-- GENERATED SPELL FOR [Master Digger] --


function spell0_1424(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1424', 624, 1)
end

function spell1_1424(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(6546,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1424', 15000, 1)
end

function Sorts_1424(pUnit, Event)
local choix_sorts_1424 = math.random(0, 1)
if choix_sorts_1424 == 0 then
pUnit:RegisterEvent('spell0_1424', 1, 1)
end
if choix_sorts_1424 == 1 then
pUnit:RegisterEvent('spell1_1424', 1, 1)
end
end

function mob1424_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1424', math.random(1500, 3000), 1)
end

function mob1424_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1424_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1424_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1424, 1, 'mob1424_Action')
RegisterUnitEvent(1424, 2, 'mob1424_Leave')
RegisterUnitEvent(1424, 3, 'mob1424_Kill')
RegisterUnitEvent(1424, 4, 'mob1424_Die')
